import { App } from "vue";
import "vant/lib/index.css";
import {
  Button,
  Icon,
  Tabbar,
  TabbarItem,
  Tab,
  Tabs,
  Swipe,
  SwipeItem,
  List,
  Lazyload,
  NavBar,
} from "vant";
const plugins = [
  Button,
  Icon,
  Tabbar,
  TabbarItem,
  Tab,
  Tabs,
  Swipe,
  SwipeItem,
  List,
  NavBar,
];

export default {
  install: function (vm: App) {
    plugins.forEach((item) => {
      vm.component(item.name, item);
    });
    vm.use(Lazyload);
  },
};
